<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位合同信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<form method="post">
<table class="bordernone" width="80%" height="110"align="center">
  <tr>
    <td class="bg_blue"  align="right" >姓&nbsp;&nbsp;&nbsp;&nbsp;名：</td>
    <td  class="nohover" width="10"><input type="text"  name="empConEmpName" value="${param.empConEmpName}"></td>
    <td class="bg_blue" align="right" width="90">性&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
    <td><select name="empConEmpSex"><option value="">请选择</option><option value="0" <c:if test="${param.empConEmpSex == '0'}">selected</c:if>>男</option><option value="1" <c:if test="${param.empConEmpSex == '1'}">selected</c:if>>女</option></select></td>
  </tr>
  <tr>
    <td  class="bg_blue"  align="right" >身份证号：</td>
    <td  class="nohover">
    <input type="text" name="empConIdCardNum" value="${param.empConIdCardNum}">
    </td>
    <td  class="bg_blue" align="right">文化程度：</td>
    <td>
    <cms:selectAll dataType="003" name="empConEducationLevel" firstTitle="请选择.." key="${param.empConEducationLevel}"></cms:selectAll>
    </td>
  </tr>
  <tr>
    <td class="nohover" colspan="4" align="center"><input class="buttonsearch" type="submit" value="查询"/>&nbsp;<input class="buttonreset" type="reset" value="重置" /></td>
  </tr>
</table>
 </form>
<table width="100%" border="1">
<tr>
<jsp:useBean id="now" class="java.util.Date" />
    <td class="nohover" colspan="10"><c:if test="${now <= date.annualVeriRepEndDate}"><input class="buttonadd" type="button" value="增加" onClick="javascript:window.location.href='<%=request.getContextPath()%>/UnitContractInfo.do?method=toAdd&eid=${param.eid}'"></c:if></td>
 </tr>
  <tr>
    <th width="35">序号</th>
    <th width="60">详细</th>
    <th width="120">姓名</th>
    <th width="120">身份证号</th>
    <th width="60">性别</th>
    <th width="90">工作岗位</th>
    <th width="90">录用日期</th>
    <th width="60">状态</th>
	<th width="160">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${pageNum + lineInfo.count}</td>
    <td><a href="<%=request.getContextPath()%>/UnitContractInfo.do?method=detail&ecid=${prod.empConId}">详细</a></td>
    <td>${prod.empConEmpName}</td>
    <td>${prod.empConIdCardNum}</td>
    <td><c:if test="${prod.empConEmpSex == '0'}">男</c:if><c:if test="${prod.empConEmpSex == '1'}">女</c:if></td>
	 <td>${prod.empConPost}</td>
	 <td><fmt:formatDate pattern="yyyy-MM-dd" value="${prod.empConEmpDate}"/></td>
	 <td>
	 <c:if test="${prod.empConState == '0' && now > prod.empConContractEndTime}">已过期</c:if>
	 <c:if test="${prod.empConState == '0' && now < prod.empConContractEndTime}">正常<c:if test="${prod.empConContractType == '1'}">(续定)</c:if></c:if>
	 <c:if test="${prod.empConState == '1'}">已续定</c:if>
	 <c:if test="${prod.empConState == '2'}">已解除</c:if>
	 </td>
	<td>
	 <c:if test="${prod.empConState == '0'}"><c:if test="${now <= date.annualVeriRepEndDate}"><c:if test="${now <= prod.empConContractEndTime}"><input name="button2" type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/UnitContractInfo.do?method=toUpdate&ecid=${prod.empConId}'" value="修改"/></c:if></c:if></c:if>
	 </td>
   <!--  <input class="buttondelete" type="button" onClick="javascript:if(confirm('确定删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/UnitContractInfo.do?method=delete&ecid=${prod.empConId}'}" value="删除" /></td> -->
  </tr>
  </c:forEach>
  <tr>
    <td class="nohover" colspan="12" align="center">&nbsp;
    <form name="pageForm" method="post" action="<%=request.getContextPath()%>/UnitContractInfo.do?method=list">
    <input type="hidden" name="empConEmpName" value="${param.empConEmpName}"/>
    <input type="hidden" name="empConEmpSex" value="${param.empConEmpSex}"/>
    <input type="hidden" name="empConIdCardNum" value="${param.empConIdCardNum}"/>
    <input type="hidden" name="empConEducationLevel" value="${param.empConEducationLevel}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
